package vip.zhenzicheng.design_patterns.observer;

/**
 * 具体的观察者角色类
 *
 * @author zhenzicheng
 * @date 2022-05-27 10:21
 */
public class WeiXinUser implements Observer {

  private final String name;

  public WeiXinUser(String name) {
    this.name = name;
  }

  @Override
  public void update(String message) {
    System.out.println(name + "-" + message);
  }
}
